import upload from '@/utils/upload'
import request from '@/utils/request'

// 查询地区
export function getArea() {
	return request({
		url: '/areas/getList',
		method: 'get'
	})
}
//获取金融顾问
export function getCon(data) {
	return request({
		url: '/consultants/consultants/getList',
		method: 'get',
		data: data
	})
}
//金融顾问订单支付
export function payCon(data) {
	return request({
		url: '/api/wx/pay/v3/payCon',
		method: 'post',
		data: data
	})
}
//轮播图
export function listCarousel(query) {
	return request({
		url: '/carousel/carousel/getList',
		method: 'get',
		params: query
	})
}
// 创建视频订单支付
export function createVideoOrder(data) {
	return request({
		url: '/video_order/order/createVideoOrder',
		method: 'post',
		data: data
	})
}
// 视频支付
export function videoPay(data) {
	return request({
		url: '/api/wx/pay/v3/videoPay',
		method: 'post',
		data: data
	})
}
// 顾问详情
export function consultants(data) {
	return request({
		url: `/consultants/consultants/${data}`,
		method: 'get',
	})
}